package com.nettytime.controller;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * 测试服务是否启动
 */
@RestController
@RequestMapping("/testnettySerive")
public class TestController {

    @Value("${server.port:8682}")
    private int serverPort;

    @GetMapping("/getPortValue")
    public String getPortValue() {
        return "服务已启动，监听端口号：" + serverPort;
    }

}
